package com.starsoft.frame.base.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

/**
 * BaseAcount entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "base_acount")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE, region="ormCache")
public class BaseAcount implements java.io.Serializable {

	// Fields

	private Integer acountId;
	private String acountName;
	private Integer userId;
	private String acountDesc;
	private Integer parentId;

	// Constructors

	/** default constructor */
	public BaseAcount() {
	}

	/** full constructor */
	public BaseAcount(String acountName, Integer userId, String acountDesc, Integer parentId) {
		this.acountName = acountName;
		this.userId = userId;
		this.acountDesc = acountDesc;
		this.parentId = parentId;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "acount_id", unique = true, nullable = false)
	public Integer getAcountId() {
		return this.acountId;
	}

	public void setAcountId(Integer acountId) {
		this.acountId = acountId;
	}

	@Column(name = "acount_name", length = 150)
	public String getAcountName() {
		return this.acountName;
	}

	public void setAcountName(String acountName) {
		this.acountName = acountName;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "acount_desc", length = 3000)
	public String getAcountDesc() {
		return this.acountDesc;
	}

	public void setAcountDesc(String acountDesc) {
		this.acountDesc = acountDesc;
	}

	@Column(name = "parentId")
	public Integer getParentId() {
		return this.parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

}